#!/usr/bin/python

l=[5,3,4,1,2]
t=(7,3,6,2,0)
s={6,2,1,3}
d={'c':2, 'b':3, 'a':1}
c='cba'

print l, sorted(l), len(l)
print t, sorted(t), len(t)
print s, sorted(s), len(s)
print d, sorted(d), len(d)
print c, sorted(c), len(c)

items=d.items()
print items
print sorted(items)
print sorted(items, key=lambda x: x[1])
print sorted(items, key=lambda x: x[1], reverse=True)
